﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Tzx.TUpdater
{
    /// <summary>
    /// 不要在VisualStudio中打开设计界面
    /// </summary>
    internal class ClsNotDesign{}

    /// <summary>
    /// 
    /// </summary>
    public class BaseForm : Form
    {
        /// <summary>
        /// 
        /// </summary>
        public BaseForm()
        {
            InitializeComponent2();

            Load += delegate(object sender, EventArgs e)
            {
                //
            };
        }

        /// <summary>
        /// 
        /// </summary>
        private void InitializeComponent2()
        {
            //图标
            Icon = Properties.Resource.AppUpdate;
            //Icon = Properties.Settings.Default["AppUpdate"];

            #region 升级vs2013后访问资源文件
            //this.Icon = new System.Drawing.Icon(Properties.Resources.MyIcon, SystemInformation.IconSize);
            //上述代码中，我们使用 System.Drawing.Icon 类的构造函数来创建一个新的图标对象，
            //并将嵌入的图标资源和系统图标大小作为参数传递给它。
            //this.Icon = (System.Drawing.Icon)Properties.Resources.ResourceManager.GetObject("MyIcon");
            #endregion

            //标题
            Text = AppGlobal.AppNameText;
        }
    }
}